﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;

namespace MyServerControl
{
    public class LogoControl : WebControl
    {
        public string LogoPath { get; set; }
        public string CompanyName { get; set; }

        public override void RenderBeginTag(System.Web.UI.HtmlTextWriter writer)
        {
            //base.RenderBeginTag(writer);
            writer.RenderBeginTag("div");
        }

        protected override void Render(System.Web.UI.HtmlTextWriter writer)
        {
            //base.Render(writer);
            writer.Write(@"<img src=""{0}"" alt=""Logo"" /><br />", this.LogoPath);
            writer.Write(this.CompanyName + "<br />");
        }
    }
}
